package com.zhang.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhang.mapper.ISaleCountMapper;
import com.zhang.pojo.SaleCountBean;
import com.zhang.service.ISaleCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
@Service
public class SaleCountServiceImpl implements ISaleCountService {
    @Autowired
    private ISaleCountMapper saleCountMapper;

    @Override
    public IPage<SaleCountBean> findByItemAndPage(Page<SaleCountBean> page, String name, LocalDate start, LocalDate ennd) {
        return saleCountMapper.findByItemAndPage(page, name, start, ennd);
    }
}
